/**
 * 
 */
package com.williamoneil.charts.client.data;

import java.util.Date;

import com.williamoneil.charts.client.util.CalendarUtil;

/**
 * @author Gudipati
 *
 */
public class VerticalGridLine {

	private Date value = null;
	private boolean major = false;

	/**
	 * @return the value
	 */
	public Date getValue() {
		return value;
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(Date value) {
		this.value = value;
	}

	/**
	 * @return the major
	 */
	public boolean isMajor() {
		return major;
	}

	/**
	 * @param major the major to set
	 */
	public void setMajor(boolean major) {
		this.major = major;
	}
	
	@SuppressWarnings("deprecation")
	public String getValueAsText() {
		return CalendarUtil.getMonthShortName(value.getMonth()) + " " + (1900+ value.getYear());
	}
}
